<template>
  <div class="not-found">
    <div class="not-found-content">
      <h1>404</h1>
      <h2>很抱歉，您访问的页面不存在</h2>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<script>
import { useRouter } from 'vue-router'

export default {
  name: 'NotFound',
  setup() {
    const router = useRouter()
    
    const goHome = () => {
      router.push('/')
    }
    
    return {
      goHome
    }
  }
}
</script>

<style scoped>
.not-found {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f2f5;
}

.not-found-content {
  text-align: center;
}

.not-found-content h1 {
  font-size: 10rem;
  margin: 0;
  color: #409eff;
}

.not-found-content h2 {
  font-size: 2rem;
  margin: 20px 0 30px;
  color: #606266;
}
</style> 